<?php
   $this->widget('application.extensions.mbmenu.MbMenu',array(
			'items'=>array(
				   array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
				   array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest),
                                   array('label'=>'Imagens Recentes', 'url'=>array('cad_arq/index'),'visible'=>!Yii::app()->user->isGuest, 'linkOptions' => array( 'class' => 'menulink' )),
 		   	           array('label'=>'Editar Galeria', 'url'=>array('cad_arq/myupdate'), 'visible'=>!Yii::app()->user->isGuest),
                                   array('label'=>'Minhas Imagens', 'url'=>array('cad_arq/my&id='.Yii::app()->user->id),'visible'=>!Yii::app()->user->isGuest, 'linkOptions' => array( 'class' => 'menulink' ),
                                     'items'=>array(
                                                array('label'=>'Minha Galeria', 'url'=>array('cad_arq/my&id='.Yii::app()->user->id), 'linkOptions' => array( 'class' => 'menulink' )),
                                      ),
                                   ),
                                   array('label'=>'Imagens de Membros', 'url'=>array('cad_arq/my&id='.Yii::app()->user->id),'visible'=>!Yii::app()->user->isGuest, 'linkOptions' => array( 'class' => 'menulink' ),
                                          'items'=>$menu_users,
                                       ),
			),
   ));?>
